package com.dcy.adapter.classadapter;

/**
 * @Author：dcy
 * @Description: 适配器
 * @Date: 2021/1/21 9:21
 */
public class VoltageAdapter extends Voltage220V implements IVoltage5V {

    @Override
    public int output5V() {
        int srcV = output220V();
        int dst = srcV / 44; // 转成5V
        return dst;
    }

}
